import React from 'react'
import { Route } from 'react-router-dom'
import LoadableComponent from "@/utils/loadable"
const RouterListPage = LoadableComponent(()=>import('./pages/list'))
const AddRouterPage = LoadableComponent(()=>import('./pages/add'))
// import RouterListPage from './pages/list'
// import AddRouterPage from './pages/add'


export default class Router extends React.Component {
    render() {
        return (
            <div>
                <p>Router</p>
                {/* 子路由 */}
                <Route path="/mock/userlist" component={RouterListPage} />
                <Route path="/mock/useradd" component={AddRouterPage} />
            </div>
        )
    }
}

